package guiParts;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class ErrorGui extends JFrame implements ActionListener {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	public ErrorGui(String error) {
		super("Error");
		JOptionPane.showMessageDialog(this,
			    error,
			    "Fehler beim Senden der Email",
			    JOptionPane.ERROR_MESSAGE);
	}

	public void actionPerformed(ActionEvent e) {
		dispose();

	}
}

